package com.ywang.puremvc.framework;

/**
 * @author ywang
 */
public interface ICommand {
    public int NO_COMMAND = -1;
    public int OK = 0;
    public int CANCELED = 1;
    public int ERROR = 2;
    
    public int TYPE_NO = -1;
    public int TYPE_EVENT = 0;
    public int TYPE_IO = 1;
    
    public String toDo();
    public void appendNotification(INotification notification);
    public int execute();
    public void cancel();
    
    public void setType(int type);
    public int getType();
}
